package com.lzy.shops.mapper;

import com.lzy.shops.bean.Goods;
import com.lzy.shops.bean.PageBean;
import com.lzy.shops.bean.Search;

import java.util.Collection;
import java.util.List;

public interface GoodsMapper {
    public List<Goods> findAll(Search searchBean);
    public Collection<Goods> findByGoodsId(Integer goodsId);
    public Integer addGoods(Goods goods);
    public Integer findCountNums();
    public Integer deleteGoods(Integer goodsId);
    public Integer updateGoods(Goods goods);
    public Goods getRandomGoods(String type);
    public List<Goods> findGoodsBySearch(String serach);
}
